import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    isPublic: false
  },
  getters: {
    isPublic: state => {
      return state.isPublic
    }
  },
  mutations: {
    setPublic(state, status) {
      state.isPublic = status
    }
  }
})

export default store
